// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import FSMManager from "./FSMManager";

const {ccclass, property} = cc._decorator;

export default class FSMState {

    // 当前状态Id
    stateId: number;

    // 所属人
    component: cc.Component;

    // 哪个状态机
    fsmManager: FSMManager;

    constructor(stateId: number, component: cc.Component, fsmManager: FSMManager) {
        this.stateId = stateId;
        this.component = component;
        this.fsmManager = fsmManager;
    }

    // 进入状态
    onEnter(){

    }

    // 状态更新中
    onUpdate(dt){

    }
}
